\ProvidesPackage{preloads}
% Note: This package is just for inner usage, so we don't have \RequirePackage here

% \geometry{a4paper, scale=1.2}

% Theorem environments
\qedsymbol{\ensuremath{\square}}
\newtheorem{theorem}{定理}
\newtheorem{proposition}{命题}
\newtheorem{lemma}{引理}
\newtheorem{corollary}{推论}[theorem]
\newtheorem{definition}{定义}
{
    \theoremstyle{nonumberplain}
    \theoremheaderfont{\bfseries}
    \theorembodyfont{\normalfont}
    \theoremsymbol{\ensuremath{\square}}
    \newtheorem{proof}{证明}
}
\numberwithin{theorem}{section}
\numberwithin{proposition}{section}
\numberwithin{lemma}{section}
\numberwithin{corollary}{section}

% Figure environments
\crefname{figure}{图}{图}

% Numbering environments
\numberwithin{figure}{section}
\numberwithin{equation}{section}

% Font style
\songti
\titleformat{\section}{\centering\bfseries}{\thesection}{1em}{}
\titleformat{\subsection}{\kaishu}{\thesubsection}{1em}{}
\titleformat{\subsubsection}{\kaishu}{\thesubsection}{1em}{}
% \setlength{\parskip}{15pt}

% Page heading style
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\textcolor{gray}{\small \leftmark}}
\fancyhead[R]{\textcolor{gray}{\small \thepage}}
\renewcommand{\sectionmark}[1]{\markboth{#1}{}}
\setlength{\headheight}{14.49998pt}
\addtolength{\topmargin}{-2.49998pt}

% Abstract style
\renewcommand{\abstractname}{摘\;要\\}
\renewcommand{\abstractnamefont}{\bfseries\large}
\setlength{\abstitleskip}{-2em}

% Bib
\renewbibmacro{in:}{
  \ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}
}
\newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}}
% \renewcommand*{\cite}[1]{\textsuperscript{\citenum{#1}}} 

%no italics or quotation marks
% \DeclareFieldFormat{citetitle}{#1}
% \DeclareFieldFormat*{title}{#1}
% \DeclareFieldFormat{maintitle}{#1}
% \DeclareFieldFormat{journaltitle}{#1}
% \DeclareFieldFormat{booktitle}{#1}